﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.vehicle.manage.edit" %>

<%@ Reference Page="~/general/vehicle/photo.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改车辆信息</title>
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
		<script src="/module/date_selector/popcalendar.js"></script>
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
    function CheckForm()
	{
		if(document.Form1.txtNumber.value=="")
		{
   			alert("车牌号不能为空！");
   			document.Form1.txtNumber.focus();
   			return false;
		}
		 if(!checkIsDate(document.Form1.txtBuyDate.value))
		{
			alert("购买日期不正确！");
			document.Form1.txtBuyDate.focus();
			return (false);
		} 
		
		return true;
	}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="20" src="/images/menu/vehicle.gif" width="20" align="absMiddle"><SPAN class="big3">&nbsp;修改车辆信息</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="550" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableData" noWrap width="80">车牌号：</TD>
						<TD class="TableData" width="310">
							<asp:TextBox id="txtNumber" runat="server" MaxLength="20" Columns="20" CssClass="BigInput"></asp:TextBox></TD>
						<TD class="TableData" width="160" rowSpan="6" align="center">
							<asp:Literal id="litPhoto" runat="server" Text="暂无照片"></asp:Literal></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>厂牌型号：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtModel" runat="server" MaxLength="20" Columns="20" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>发动机号：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtEngineNum" runat="server" MaxLength="50" Columns="20" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>车辆类型：</TD>
						<TD class="TableData">
							<asp:DropDownList id="ddlType" runat="server" CssClass="BigSelect">
								<asp:ListItem Value="轿车">轿车</asp:ListItem>
								<asp:ListItem Value="面包车">面包车</asp:ListItem>
								<asp:ListItem Value="越野车">越野车</asp:ListItem>
								<asp:ListItem Value="吉普车">吉普车</asp:ListItem>
								<asp:ListItem Value="巴士">巴士</asp:ListItem>
								<asp:ListItem Value="工具车">工具车</asp:ListItem>
								<asp:ListItem Value="卡车">卡车</asp:ListItem>
							</asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>驾驶员：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtDriver" runat="server" MaxLength="20" Columns="20" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>购买价格：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtPrice" runat="server" MaxLength="20" Columns="20" CssClass="BigInput"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>
							<asp:literal id="litUpload" runat="server" Text="车辆照片上传："></asp:literal></TD>
						<TD class="TableData" colSpan="2"><INPUT class="SmallInput" id="filePhoto" type="file" name="filePhoto" runat="server">
							（gif/jpeg格式，最大
							<asp:literal id="litImageMaxSize" runat="server"></asp:literal>k）
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>购买日期：</TD>
						<TD class="TableData" colSpan="2">
							<asp:TextBox id="txtBuyDate" runat="server" MaxLength="10" Columns="12" CssClass="BigInput"></asp:TextBox><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtBuyDate,'yyyy-mm-dd','');" src="/module/date_selector/calendar.gif"
								align="absMiddle" border="0"> 日期格式形如 1999-1-2
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>当前状态：</TD>
						<TD class="TableData" colSpan="2">
							<asp:DropDownList id="ddlStatus" runat="server" CssClass="BigSelect">
								<asp:ListItem Value="可用">可用</asp:ListItem>
								<asp:ListItem Value="损坏">损坏</asp:ListItem>
								<asp:ListItem Value="维修中">维修中</asp:ListItem>
								<asp:ListItem Value="报废">报废</asp:ListItem>
							</asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>备注：</TD>
						<TD class="TableData" colSpan="2">
							<asp:TextBox id="txtRemark" runat="server" Columns="55" CssClass="BigInput" TextMode="MultiLine"
								Rows="3"></asp:TextBox></TD>
					</TR>
					<TR class="TableControl">
						<TD noWrap align="center" colSpan="3"><INPUT class="BigButton" onclick="return CheckForm();" type="submit" value="保存">&nbsp;&nbsp;
							<INPUT class="BigButton" type="reset" value="重填">&nbsp;&nbsp; <INPUT class="BigButton" onclick="location='index1.aspx';" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
